﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Vds2465Parser
{
	internal static class GenParse_Checksum
	{
		internal static byte CalculateChecksum(byte[] dataBytes)
		{
			byte calculatedChecksum = 0x00;

			if (dataBytes != null)
			{
				for (int i = 0; i < dataBytes.Length; i++)
				{
					calculatedChecksum += dataBytes[i];
				}
			}

			return calculatedChecksum;
		}
	}
}
